<template>
    <div class="run-operating">
        <ModalTitle title="运行指数" />
        <!-- 数字统计 -->
        <div class="run-number">
            <div class="number-box">
                <img src="@/assets/images/zhangzi/home/yunxingzhishu.png" alt="" class="img-left">
                <div>
                    <p>
                        <span>本年案件采集量</span>
                        <img src="@/assets/images/zhangzi/home/zhishubg.png" alt="">
                    </p>
                    <span>{{ anjianData.yearCj }}</span>
                </div>
            </div>

            <div class="number-box">
                <img src="@/assets/images/zhangzi/home/yunxingzhishu.png" alt="" class="img-left">
                <div>
                    <p>
                        <span>本年案件受理量</span>
                        <img src="@/assets/images/zhangzi/home/zhishubg.png" alt="">
                    </p>
                    <span>{{ anjianData.yearWj }}</span>
                </div>
            </div>
        </div>
        <!-- 利率 -->
        <!-- <div class="run-finish">
            <p class="finish-box">
                <span>案件完结率</span>
                <span>{{anjianData.bmPercentage}}%</span>
            </p>
            <p class="finish-box">
                <span>案件完结率</span>
                <span>{{anjianData.cgPercentage}}%</span>
            </p>
        </div> -->
    </div>
</template>

<script>
// 运行指数
import ModalTitle from '@components/ModalTitle/Index.vue'
import { ZongHeZhiFaDB } from '@/api/zhangzi'

export default {
    components: { ModalTitle },
    data() {
        return {
            anjianData: {}
        }
    },

    mounted() {
        this.getStatisticsOrderNumFn()
    },

    methods: {
        getStatisticsOrderNumFn() {
            ZongHeZhiFaDB.getStatisticsOrderNum().then(res => {
                console.log(res,'2112132');
                if (res.code == 200) {
                    this.anjianData = res.data
                }
            })
        }
    }
}
</script>

<style lang="less" scoped>
.run-operating {
    width: 100%;
    // height: 25.2rem;
    margin-bottom: 1.6rem;

    .run-number {
        display: flex;
        justify-content: center;
        width: 100%;
        height: 5.6rem;
        margin-top: 2.4rem;

        .number-box {
            display: flex;

            &:nth-child(2) {
                margin-left: 1.6rem;
            }

            .img-left {
                width: 8.9rem;
                height: 5.3rem;
            }

            div {
                span {
                    display: inline-block;
                    font-size: 2.4rem;
                    font-family: OPPOSans-B, OPPOSans;
                    font-weight: normal;
                    color: #6ACBFF;
                    line-height: 2.7rem;
                    margin-top: 1rem;
                }

                p {
                    position: relative;
                    padding-left: 0.6rem;

                    span {
                        font-size: 1.6rem;
                        font-family: PingFangSC-Medium, PingFang SC;
                        font-weight: 500;
                        color: #EFF0F1;
                        line-height: 2.1rem;
                        z-index: 1002;
                        margin: 0;
                    }

                    img {
                        width: 8.9rem;
                        height: 1rem;
                        position: absolute;
                        bottom: 0;
                        left: 0;
                    }
                }
            }
        }
    }

    .run-finish {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 3rem;

        .finish-box {
            width: 200.5rem;
            height: 5.3rem;
            background: url('../../../../assets/images/zhangzi/home/wanjiekv.png') no-repeat;
            background-size: 100% 100%;
            display: flex;
            align-items: center;
            justify-content: center;

            &:nth-child(2) {
                margin-left: 2rem;
            }

            span {
                display: inline-block;
                font-size: 1.6rem;
                font-family: PingFangSC-Medium, PingFang SC;
                font-weight: 500;
                color: #EFF0F1;
                line-height: 2.1rem;

                &:nth-child(2) {
                    color: #0090FA;
                    margin-left: 2rem;
                }
            }
        }
    }
}
</style>